package weapons;

import java.util.Hashtable;
import java.util.Vector;

import secretweapons.Pulse;
import secretweapons.Singularity;
import util.Timer;

/**
 * This class should contain the time out for each weapons mapped to the weapon itself, and the default number
 * of each weapon.
 * 
 * It will be used in arsenal to set up the Timers.
 * @author max
 *
 */

public class WeaponConstants {
	public static final int LEFT = 0;
	public static final int RIGHT = 1;
	public static final int CENTER = 2;
	
	public static final double MINE_SPEED = 5;
	
	public WeaponConstants() {
		
	}
	
	public static Vector<Class> specials = new Vector<Class>();
	static{
		specials.add( Pulse.class );
		
	}
	
	public static Vector<Class> weapons = new Vector<Class>();
	static{
		weapons.add( StaticMine.class );
		weapons.add( Singularity.class);
	}
	
	public static final Hashtable<String, Integer> load = new Hashtable<String, Integer>();
	
	static {
		load.put(StaticMine.class.getName(), 4);
		load.put(Pulse.class.getName(), 100);
		load.put(Singularity.class.getName(), 2);
	}
	
	public static final Hashtable<String, Timer> timers = new Hashtable<String, Timer>();
	
	static {
		timers.put(StaticMine.class.getName(), new Timer(50));
		timers.put(Pulse.class.getName(), new Timer(100));
		timers.put(Singularity.class.getName(), new Timer(100));
	}
}
